const arr =[1,3,4,4,5]

// console.log(arr.shift())
// console.log(arr.shift())

console.log(arr.find((value,index,arr)=>{
    return value > 4;
}))

console.log(arr.findIndex((value,index,arr)=>{
    return value > 4;
}))